Key identification system

ABSTRACT

A system for identifying the key blank corresponding to a master key is provided. The system includes a first luminous surface and a second luminous surface. The second luminous surface is disposed opposite the first luminous surface such that the master key is disposable therebetween. The first and second luminous surfaces are operable to generate an image of the master key. A receiver is provided to capture the image of the master key. The system also includes a control having a memory that stores information on a plurality of key blanks. The control is operable to identify the key blank corresponding to the master key based on the image captured by the receiver.

BACKGROUND OF THE INVENTION

This invention generally relates to a system for identifying a key. Moreparticularly, the present invention relates to a system for identifyingthe key blank that corresponds to a master key.

There are many circumstances in which a key owner may desire to obtain acopy of a key. For example, the key owner would need to replace a keyafter the key has undergone significant use and the cuts and notches onthe key blade have worn to a point where the key can no longereffectively operate the corresponding lock. A key owner may also desireto create a duplicate key to replace a lost key or simply to obtain anextra key.

To reproduce a key, the type, or style, of key blank used in the masterkey must be identified from the numerous types of key blanks availablein the market. In addition to identifying the appropriate key blank, thecuts, or notches, in the blade of the key may be identified. After thekey blank and the key cuts are identified, a key blank corresponding tothe master key may be positioned in a clamp and a cutting mechanismemployed to reproduce the notches in the blade. The end result of thisprocess is a key that is a reproduction of the original master key.

Each different type, or style, of key blank has different features thatuniquely identify the key blank. These features include the head shape,blade length, milling locations and depths, and the number of cut edges(i.e. whether the key is one-sided or two-sided). To identify theappropriate key blank, this information is extracted from the master keyand compared to known key blanks. A key blank can be identified wheneach of the features of the master key is matched to a particular keyblank. This comparison process may be performed manually or with anautomated identification device. The currently known automated keyidentification machines extract this information from a master keythrough a combination of two processes: back lighting and lightstriping.

In a back lighting process, a light source and a camera are positionedon opposite sides of a master key so that the light from the lightsource forms a profile of the key for the camera to capture. Thecaptured profile is digitized and the results are analyzed by aprocessor to extract information about the master key. This backlighting process can reveal information about the head shape, bladelength, and whether the key is one-sided or two-sided. However,information about the shape of the key blade surface, such as thelocation and depth of any grooves or millings, cannot be determined fromthe profile of the master key. Thus, the back lighting process alone isunable to extract all of the information about the master key needed toidentify the key.

The process of light striping will reveal the information that can notbe obtained in the back lighting process. In the light striping process,a generally planar beam of light is directed at an angle against theblade of the key. The beam of light is then moved along the length ofthe key blade, either by moving the key relative to the light stripe andcamera or by moving the light stripe and camera relative to the key. Theimage created by the intersection of the light stripe and the bladesurface is captured by a camera. Because of the angle of intersection ofthe light stripe and the key blade and the differing depths of the keyblade surface due to the millings or grooves, the image captured by thecamera will be non-linear. This non-linear image may be digitized andanalyzed to determine the location and depth of the grooves or millingson the key blade surface.

Key identification machines that identify a key with the light stripingand back lighting processes are typically complex machines as they mustinclude the moving parts and multiple lighting sources needed to bothback light and light stripe the key blade. In addition, a bright lightsource, such as a laser, is typically required to generate the lightstripe. The use of a laser necessitates that certain safety precautions,such as laser shielding, be included in the light striping device.

In addition, imperfections or dirt on the surface of the key blade canresult in glares or shadows under the harsh light of a laser generatedlight stripe. These glares and shadows are captured as part of thecamera image of the light stripe and can reduce the accuracy of the keyidentification process.

Another problem with known light striping machines is that the masterkey must be accurately positioned with respect to the light stripe toobtain an accurate identification of the master key. For the lightstriping process to work, the user must place the key bladeperpendicular to the light stripe generator. Any other positioning willresult in a distorted non-linear image. If the alignment of the key istoo far off from perpendicular, the distortion of the non-linear willprevent an accurate identification of the key blank.

In light of the foregoing, there is a need for an improved keyidentification system that (1) has a reduced number of moving parts; (2)is easy to use; and (3) has improved accuracy and speed of keyidentification.

SUMMARY OF THE INVENTION

Accordingly, the present invention is directed to a system foridentifying keys that obviates one or more of the limitations anddisadvantages of prior art key identification devices. The advantagesand purposes of the invention will be set forth in part in thedescription which follows, and in part will be obvious from thedescription, or may be learned by practice of the invention. Theadvantages and purposes of the invention will be realized and attainedby the elements and combinations particularly pointed out in theappended claims.

To attain the advantages and in accordance with the purposes of theinvention, as embodied and broadly described herein, the invention isdirected to a system for identifying a key blank from a master key. Thesystem includes a first luminous surface and a second luminous surfacedisposed opposite the first luminous surface such that a master key isdisposable therebetween. The first and second luminous surfaces areoperable to generate an image of the master key. A receiver captures theimage of the master key, and a control that has a memory storinginformation on a plurality of key blanks identifies the key blankcorresponding to the master key based on the captured image.

In another aspect, the present invention is directed to a device foridentifying a key blank from a master key. The device includes ahousing. A first illuminating means and a second illuminating means aredisposed in the housing and are fixed relative to the housing. The firstilluminating means is operable to selectively illuminate a first side ofa master key and the second illuminating means is operable toselectively illuminate a second side of the master key. A receiver isprovided to capture an image of the master key generated by at least oneof the first and second illuminating means. A control having a memoryoperable to store information on a plurality of key blanks is provided.The control is operable to identify the key blank corresponding to themaster key based on the captured image.

In still another aspect, the present invention is directed to a methodof identifying a key blank from a master key. According to the method, ahousing having a first luminous surface and a second luminous surfacefixed therein is provided. A master key is positioned between the firstluminous surface and the second luminous surface. At least one side ofthe master key is illuminated with one of the first and second luminoussurfaces. The image of the master key generated by the one of the firstand second luminous surfaces is captured and compared with informationfrom known key blanks to identify a key blank corresponding to themaster key.

In yet another aspect, the present invention is directed to a system foridentifying a key blank from a master key. The system includes a housingconfigured to receive a master key. A luminous surface is disposed inthe housing to selectively illuminate a surface of the master key. Areceiver is provided to capture an image of the master key asilluminated by the first luminous surface. There is further provided acontrol having a memory for storing information on a plurality of keyblanks. The control identifies the key blank corresponding to the masterkey based on the captured image.

It is to be understood that both the foregoing general description andthe following detailed description are exemplary and explanatory onlyand are not restrictive of the invention, as claimed.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification, illustrate an embodiment of the presentinvention and together with the description, serve to explain theprinciples of the invention. In the drawings,

FIG. 1 is a perspective view of a key identification system inaccordance with the present invention;

FIG. 2 is a perspective view of first and second luminous surfaces and areceiver in accordance with the present invention;

FIG. 3 is a side view of the first and second luminous surfaces andreceiver of the embodiment illustrated in FIG. 2;

FIG. 4 is a side view of another embodiment of first and second luminoussurfaces and a receiver in accordance with the present invention;

FIG. 5 is a sectional view of the first and second luminous surfaces andreceiver of the embodiment illustrated in FIG. 4;

FIG. 6 a is a top view of an exemplary master key (without bittingpattern);

FIG. 6 b is a cross sectional view of the master key of FIG. 6 a takenalong line A—A;

FIG. 7 a is a top view of another exemplary master key (without bittingpattern);

FIG. 7 b is a cross sectional view of the master key of FIG. 7 a takenalong line B—B;

FIG. 8 a is a top view of another exemplary master key (without bittingpattern);

FIG. 8 b is a cross sectional view of the master key of FIG. 8 a takenalong line C—C;

FIG. 9 is a schematic diagram of a computer suitable for controlling theoperation of the key identification system of the present invention;

FIGS. 10 a and 10 b are a flowchart illustrating a method of identifyinga key blank from a master key in accordance with the present invention;and

FIGS. 11 a-11 d are top views of exemplary key blanks, illustrating therespective milling exit pattern of the key blanks.

DETAILED DESCRIPTION

Reference will now be made in detail to the presently preferredembodiments of the present invention, examples of which are illustratedin the accompanying drawings. Wherever possible, the same referencenumbers will be used throughout the drawings to refer to the same orlike parts. An exemplary embodiment of a system for identifying a masterkey according to the present invention is shown in FIG. 1 and isdesignated generally by reference number 20.

Key blanks are made in a variety of sizes and shapes, each of which isconfigured to ultimately operate a particular type of lock. To identifythe key blank corresponding to a master key, the master key must beanalyzed to obtain identifying information about the master key thatwill uniquely identify the corresponding key blank.

FIGS. 6 a, 7 a, and 8 a illustrate several exemplary master keys. Forpurposes of simplicity, the master keys are illustrated without abitting pattern. As shown, each master key 32 has a head 64, a shoulderarea 70, and a blade 72. The size and shape of key head 64 and shoulderarea 70 are features of the master key 32 that are useful in identifyingthe corresponding key blank.

Blade 72 of master key 32 has a length L and includes a first edge 66and a second edge 68. Master key 32 may include cuts or notches in oneor both of the first and second edges 66 and 68. A key with cuts in oneedge is considered a single-sided key, whereas a key with cuts in bothedges is considered a double-sided key. The blade length L and thenumber of cut edges are additional features of the master key that areuseful in identifying the corresponding key blank.

As illustrated in FIGS. 6 b, 7 b, and 8 b, blade 72 of master key alsoincludes a first side 46 and a second side 47. Each side 46 and 47typically includes millings 74, or grooves, that further define the keyblank. These millings are designed to correspond to the shape of a keyreceptacle in a particular lock. A milling exit pattern 76 is formed inthe shoulder area 70 and head 64 when the millings 74 are formed in theblade. The number, location, and depth of millings 74 and the resultingshape of milling exit pattern 76 on the key blade are additionalfeatures of the master key that are useful in identifying the key blankthat corresponds to the master key.

By comparing information about the head, shoulder, and blade of themaster key to similar information about known key blanks, the key blankcorresponding to the master key may be identified. Some features, suchas the head shape and blade length, may be common across a number ofdifferent styles of key blank and, therefore, cannot be used alone touniquely identify the key blank. However, this information is easy tocompare to known key blanks and can be used to reduce the number ofpotential key blank matches that warrant additional comparison with theremainder of the master key information.

In accordance with the present invention, there is provided a system foridentifying a key blank corresponding to a master key. The systemincludes a first luminous surface and a second luminous surface. Thefirst and second luminous surfaces are disposed opposite one anothersuch that the master key is disposable therebetween. The first andsecond luminous surfaces are operable to generate an image of the masterkey. In the preferred embodiment, the first and second luminous surfacesinclude an electro-luminescent film, although the present inventioncontemplates that the luminous surfaces may include other luminousmaterials capable of generating uniform light, such as chemical andelectrical luminescence.

As illustrated in FIG. 1, the key identification system 20 includes afirst luminous surface 24 and a second luminous surface 26. Preferably,first and second luminous surfaces 24 and 26 are disposed within ahousing 22 and are fixed relative to the housing. In the illustratedembodiment, housing 22 substantially encloses the first and secondluminous surfaces 24 and 26 to provide a light tight environment inwhich a master key 32 may be examined. By enclosing the luminoussurfaces, housing 22 prevents unwanted light from reflecting off anyinternal components of the key identification system. Any unwanted lightthat interferes with the key identification process could reduce theaccuracy of the identification process.

Preferably, housing 22 contains a door (not shown) or other openingthrough which master key 32 may be placed in the key identificationsystem 20. The door may be automatically opened and closed during thekey identification process by a control (as described in greater detailbelow). Alternatively, the door may be manually opened and closed by auser.

In the preferred embodiment, first and second luminous surfaces 24 and26 include an electro-luminescent film. As illustrated in FIG. 2, firstand second luminous surfaces 24 and 26 are connected to power leads 40and 41, respectively, which are, in turn, connected to a power source(not shown). When the power source is activated, a voltage is applied tothe electro-luminescent film. As is known in the art, when a voltage isapplied to electro-luminescent film, the electro-luminescent film emitsa uniform glow of light across the surface of the film. The brightnessof the emitted glow may be varied by increasing or decreasing thevoltage applied to the electro-luminescent film. In addition, adjustingthe frequency of the current applied to the electro-luminescent filmcould also alter the brightness of the emitted glow.

Preferably, as illustrated in FIGS. 1-3, first luminous surface 24 isconfigured to receive master key 32. It is contemplated that master key32 may be placed directly on first luminous surface 24 or a transparentsupport (not shown) may be provided to receive the master key. Whenmaster key 32 is positioned on or over the first luminous surface andthe power source is activated, the light emitted from the first luminoussurface will back light master key 32. Viewed from a position on theopposite side of master key 32 from first luminous surface 24, the backlighting of the master key will outline the profile of the master key.The profile of the master key reveals the shape and size of the head andshoulder of the master key, as well as the length of the key blade. Thisback lighting process will also reveal the bitting pattern in the masterkey, if that is a desirable feature to extract from the master key.

As also illustrated in FIGS. 1-3, second luminous surface 26 ispositioned on the opposite side of master key 32 from first luminoussurface 24. When the power source is activated, the light generated bysecond luminous surface 26 will illuminate the unsupported surface 46 ofmaster key 32. The uniform light generated by second luminous surface 26will illuminate the surface of the key, including any grooves ormillings in the key blade and the milling exit pattern on the keyshoulder and head.

The present invention contemplates that the key identification system ofthe present invention may include a single luminous surface fixed in ahousing. As described in greater detail below, this embodiment willallow for the accurate identification of a key blank from a master key.However, it is expected that providing two luminous surfaces willprovide for a faster identification of the blank key.

In accordance with the present invention, the key identification systemalso includes a receiver operable to capture the image of the master keythat is generated by the first and second luminous surfaces. In thepreferred embodiment, the receiver is a high resolution digital camera,such as a 1288×1032 high resolution digital monochrome CCD manufacturedby PixelCam and Vitana. It is contemplated, however, that a non-digitalcamera may be used in connection with a digitizer, which together willproduce a digital signal that represents the image of the master key.The present invention also contemplates that the receiver may capturethe image of the key when only the first luminous surface is activatedto obtain the profile of the master key or when both luminous surfacesare activated to obtain an image of the unsupported surface of themaster key.

As illustrated in FIGS. 2 and 3, receiver 28 is preferably positionedadjacent to second luminous surface 26. Second luminous surface 26includes an opening 44 configured to allow receiver 28 to obtain anunobstructed view of master key 32. Preferably, opening 44 is as smallas possible to ensure that second luminous surface 26 properlyilluminates the unsupported (exposed) surface of the master key.

Opening 44 limits the viewing range of receiver 28 to a certain viewingrange 42. For master key 32 to be identified, the master key 32 must bedisposed within the viewing range 42 of the receiver. In the preferredembodiment, a frame 38 (referring to FIG. 1) surrounds first luminoussurface 24 to limit the area in which master key 32 may be placed to theviewing area of receiver 28. This will ensure that master key 32 isplaced within the viewing range of the receiver and can therefore beidentified.

Preferably, the lens of receiver 28 is flush with the second luminoussurface 26. Alternatively, the lens of receiver 28 may be slightlybehind the second luminous surface 26. Any projection of the lens pastthe second luminous surface 26 could potentially interfere with thelight generated by the second luminous surface and cast a shadow on themaster key. Such a shadow could reduce the accuracy of the keyidentification process. However, the further the lens moves away fromthe surface of the second luminous surface 26, the more the viewingangle of the receiver is restricted. Thus, the largest viewing area isobtained when the lens of receiver is flush with the surface of thesecond luminous surface.

Receiver 28 is configured to capture different images of master 32during the key identification process. The different images of masterkey 32 are generated by varying the amount of light generated by each ofthe first and second luminous surfaces and by selectively activating orde-activating the first and second luminous surfaces. It is contemplatedthat generating a variety of different images may be useful inidentifying the key blank from the master key.

For example, one image of master key 32 that is useful in identifyingthe key blank is a back lit image of the master key. The back lit imageis generated by activating first luminous surface 24 without activatingsecond luminous surface 26. The body of master key 32 blocks some of theillumination generated by the first luminous surface. The receivercaptures the illumination that passes by the master key, which willdefine the shape of the master key. The receiver captures the image as aset of differently colored pixels. The darker pixels identify thelocation of the master key and the point at which the pixels change fromdarker to lighter indicates the location of the edge of the key. Thisimage may be analyzed to determine the shape of the silhouette, orprofile, of the master key.

A second useful image in identifying a key blank is a top lit image ofthe master key. This image can be generated by activating both first andsecond luminous surfaces 24 and 26. Master key 32 will block a portionof the illumination generated by first luminous surface 24 and willreflect a portion of the illumination generated by second luminoussurface 26. The resulting image captured by receiver 28 will include aset of differently colored pixels that define the surface of master key32. The top lit image will include lines of darker colored pixels thatindicate the location of millings 74 on key blade 72. The top lit imagemay be analyzed to determine the location and width of millings 74 onkey blade 72 as well as milling exit shape pattern 76.

An alternative embodiment of the receiver is illustrated in FIGS. 4 and5. In this embodiment, a second receiver 50 is disposed adjacentreceiver 28 and aligned with a second opening 52 in the second luminoussurface 26. The lens of second receiver 50 is also disposed flush with,or slightly back from, second luminous surface 26. This configurationprovides second receiver 50 with a viewing range 54 of at least a partof master key 32.

Preferably, second receiver 50 is positioned such that the viewing range54 of the second receiver 50 overlaps viewing range 42 of receiver 28.Thus, receiver 28 will capture an image of a first part of master key 32and second receiver 50 will capture and image of a second part of themaster key. The images captured by receiver 28 and second receiver 50can be combined to create a complete image of the master key, from whichthe key may be identified, as described in greater detail below.

Preferably, first luminous surface 24 includes reference marks 55 to aidin combining the images of the key captured by receiver 28 and secondreceiver 50. These reference mark have a width equal to the width of apixel. Reference marks 55 are placed within the overlap of the viewingranges 42 and 52. Thus, each receiver captures reference marks 55 alongwith a portion of master key 32. The reference marks 55 are used whenthe two separate images are combined to form a single image of themaster key and ensure that the image of the key is properly combined.

The dual receiver embodiment can provide for a more compact keyidentification system. Because the viewing area of the two receivers canbe combined to form a complete image of the master key, the distancebetween the master key and the two receivers can be reduced to less thanthat required by a single receiver to capture the entire image of themaster key. Thus, the height of the identification system may be reducedby employing an additional receiver.

In accordance with the present invention, the key identification systemincludes a control having a memory operable to store information on aplurality of key blanks. The control receives the digitized image of themaster key from the receiver and analyzes the image to extractidentifying information from the master key. The control compares themaster key information to information about known key blanks todetermine the key blank that corresponds to the master key.

Preferably, the control includes a device, such as computer 80(referring to FIG. 9), to control the operation of the keyidentification system. Computer 90 includes a memory 82, a secondarystorage device 84, a processor 90 such as a central processing unit, aninput device 92, and a display device 88. Computer 80 is optionallyconnected to a network 94, such as the Internet.

Memory 82 and secondary storage 84 may store applications, such asapplication 86, or information for execution and use by processor 90. Inparticular, memory 82 stores information about known types of keyblanks. The stored information includes all relevant information abouteach key blank, such as the head shape, blade length, number of cutedges, depth and location of millings, and the milling exit pattern.Preferably this information is stored in a manner that provides forefficient searches of the features of the key blank. The presentinvention contemplates that key blank information may also be stored inan external memory and accessed through a network or over the Internet.

The present invention contemplates that memory 82 may be periodicallyupdated with information on new types of key blanks. These updates maytake place through a floppy disk, a CD-Rom, or other known techniques.In addition, updates may be delivered to computer 80 via the Internet.

Although computer 80 is depicted with various components, one skilled inthe art will appreciate that this computer can contain additional ordifferent components. Additionally, although computer 80 is shownconnected to network 94, computer 80 may be connected to other networks,including other wide area networks or local area networks. Furthermore,although aspects of the present invention are described as being storedin memory, one skilled in the art will appreciate that these aspects canalso be stored on or read from other types of computer program productsor computer-readable media, such as secondary storage devices: includinghard disks, floppy disks, or CD-ROM; a carrier wave from a network suchas the Internet; or other forms of RAM or ROM. These aspects of thepresent invention may also include modules, implemented in software,hardware, or a combination, configured to perform a particular methodimplementing an embodiment consistent with the present invention. Inaddition, the computer-readable media may include instructions forcontrolling a computer system, such as computer 80, to perform aparticular method.

In the preferred embodiment, the control governs the entire operation ofthe key identification system. Preferably, the control system operatesto selectively activate one or both of the first and second luminoussurfaces 24 and 26 and to adjust the power source to vary the voltageapplied to the first and second luminous surfaces. Thus, the control mayselectively adjust the brightness of the luminous surfaces and controlwhether the key is back lit or top lit.

The display device 88 of computer 80 is preferably a LCD display 34(referring to FIG. 1) that is visible outside housing 22. It iscontemplated that alternative display devices, such as, for example,computer monitors, may be used. The control may display messages on LCDdisplay 34 to provide instructions or messages to the user during theidentification process. In addition, the control may display the resultsof the key identification process on LCD display 34.

Input device 92 of computer 80, preferably includes a series of buttons36 (referring to FIG. 1) that are accessible outside housing 22. Theuser may utilize these buttons to start the identification process or toinput information into the computer in response to a prompt from thecontrol.

The operation of the key identification system of the present inventionwill now be described with reference to the accompanying drawings. FIGS.10 a and 10 b contain a flow chart of an exemplary process 100 foridentifying a master key. Process 100 may be implemented by application86 (referring to FIG. 9) stored in memory 82 and controlling operationof processor 90.

When the identification system is activated, the control undergoes aninitialization process. As part of this initialization process, firstluminous surface 24 is activated without a master key in position foridentification. A reference image of the back lighting provided by firstluminous surface is captured by receiver 28 (step 102). This image isstored in memory 82 for use as a baseline reference in later processing.

The identification process begins after a master key 32 is placed onfirst luminous surface 24 and the door of housing 22 is shut. Frame 38ensures that master key 32 is placed within the viewing area of receiver28. The closing of the door may initiate the identification process orthe user may initiate the identification process by depressing one ofbuttons 36.

The control then captures two images of the master key. For the firstimage, the control activates only the first luminous surface, whichresults in the master key being back lighted. The receiver captures theback lit image of the key (step 104) and the image is stored in memory82. For the second image, both the first and second luminous surfacesare activated, which results in an illumination, or top lighting, of theunsupported side 46 of master key 32. The receiver captures the top litimage of the master key (step 106) and stores the image in memory 82.

Alternatively, it is contemplated that the control may only capture thetop lit image of the master key, without capturing the back lit image.As described in greater detail below, the key blank may be identifiedbased on the top lit image alone. However, as also further describedbelow, comparisons of the master key with known key blanks based on theback lit image can be performed faster than comparisons based on the toplit image. Thus, information obtained from the back lit image may beused to filter out some key blanks before comparing information obtainedfrom the top lit image to increase the speed of the identificationprocess.

Preferably, the control then generates a silhouette image of the masterkey (step 108). This is accomplished by subtracting the reference imagecaptured during the initialization process from the back lit image ofthe master key. The result is a silhouette image of the master key.

The control then analyzes the silhouette image of the key to create anedge map of the master key (step 110). The edge map is an array ofpoints that define the relative locations of different points along theedges of the master key. The edge map is stored in memory 82 for furtherprocessing. During this process, the control also determines the extremepoints of the edge map, which are the points that are furthest to theleft, right, top, and bottom of the image.

The extreme points are used to determine the orientation of the key(step 112). The control identifies which of the extreme points arefurthest apart. These points represent the tip 62 and the head 64 of thekey. The control then analyzes the edge map immediately adjacent tothese points to determine the point that represents the tip 62 of thekey and the point that represents the head 64 of the key. Once the tip62 and head 64 of the key are identified, the orientation of the masterkey 32 relative to first luminous surface 24 can be determined. (Step112).

The control then analyzes the edge map of the key blade to determinewhether the key is single-sided or double-sided (step 113). The controlexamines the edge map representing both sides of the key blade. Thecontrol establishes two points that are a fixed distance apart andcomputes the slope between these two points. This becomes the referenceslope. Next, the control moves one of the end points closer to the otherand computes the slope between the new point positions. This is repeatedseveral times and for each occurrence the newly computed slope iscompared to the reference slope. Each time the newly computed slope isoutside the tolerance of the reference slope, it is counted as a slopevariance. If the count of variances exceeds a particular threshold thekey blade side is considered to be a cut side. From this process, thecontrol determines if the blade has cuts on a single side or on bothsides (i.e. is a single-sided or double-sided key).

Next the control extracts information on the key spine and shoulderlocation from the edge map (step 114) to determine the blade length L ofmaster key 32. In a single-sided key, the uncut side is considered thekey spine. The control first establishes two points on the uncut sidethat are near one another and computes the slope between these twopoints. The control next establishes the tip end of the spine bysearching the edge map of the key along the uncut edge towards the tipof the key to find the point at which the slope varies from thereference slope of the uncut side. Next, the control locates the headend of the spine by searching the edge map of the key along the uncutedge towards the head of the key to find the point at which the slope ofthe uncut side. This process also establishes the maximum blade length.

Control must then search the key for a shoulder. This is done byestablishing a point perpendicular to the head end of the spine that ison the cut side of the blade. From this perpendicular point controlsearches the edge map of the cut blade back towards the tip end of thekey for a slope deviation that indicates the cut key edge is slantingtowards the uncut edge. If this condition is not detected within aspecific distance then the previously identified spine head isinterpreted as the spine shoulder point 71 of the key. If, however, aslope deviation of a significant value is detected, then a point on theuncut side that is perpendicular to this deviation is interpreted as thespine shoulder point 71. The control then computes the blade length L asthe distance between the spine tip and the spine shoulder points.

In a double-sided key, the key spine is identified by locating one pointon both sides of the blade that are in the uncut part of the blade. Thesystem can then assume that the area of the blade between the locatedpoints and the key head is a straight line. The system determines thedistance between the straight lines and identifies the midpoint, orcenterline of the key. The system then searches from the tip end of thekey to find a point that is on the centerline of the key. The centerlineof the key between the tip end and the uncut portion of the key blade isthe spine of a double-sided key.

For simplicity, one side of the double-sided key is labeled as the cutside and the other side labeled as the uncut side. The shoulder point 71of the double-sided key is then determined in a similar manner to thesingle-sided key. The blade length L of the double-sided key is thedistance between the shoulder point 71 and the key tip 62.

Preferably, the system searches the known key blanks in the database tofilter out key blanks that have different numbers of cut edges (i.e. aretwo-sided and the master key is one-sided) and have blade lengths thatare outside a certain tolerance of the blade length of the master key.The resulting subset of potential matches is maintained in memory forfurther comparison.

The system next extracts the head and shoulder shape information (step116). The head shape of the master key is modeled by determining thewidth of the head at a series of locations between the shoulder pointand the head end of the key. The system smooths out any variations inthe head shape through an interpolation or extrapolation method.Preferably, the resulting information about the head shape of the masterkey are consolidated to both simplify the future matching process and toreduce the size of the shape information. The data groups areconsolidated by combining consecutive widths of the same size in to asingle width description of both width and count of width occurrences(length). These width descriptions are combined into a single shapedescription string. This consolidation step reduces the amount of headshape data that must be compared with known key blanks.

The control then compares the head and shoulder information against thelist of possible matches remaining after the edge cut and blade lengthfilter. Preferably, the control first performs a general comparison ofthe master key head shape of the potential key blank matches and removesthose key blanks that are outside of a certain tolerance.

The shape comparison is a process of comparing each width description inthe shape description string for the master key with those of the knownkey blank. Preferably, the similarity of each comparison is assigned ascore. If, after the shape description strings are compared, there areany remaining width descriptions for either the master key or the knownblank key, the comparison score is reduced accordingly. This comparisonprocess takes into account both the width and the location where thewidth occurs. The advantage of this process is that both symmetrical andasymmetrical keys can be uniquely identified.

Preferably, the control maintains information about key blanks that aresimilar to one another. Each time a list of possible matches aregenerated for a master key, the control ensures that each of theidentified key blanks are listed as “similar to” the other key blanks onthe list. If one or more of the key blanks identified as a possiblematch is not listed as similar to the other blank keys on the potentialmatch list, the system updates this information accordingly. In asituation where the control is unable to identify the key blank to acertainty, keys that are “similar to” the master key may be presented tothe user to aid in identifying the appropriate key blank.

It is further contemplated that the system may employ a ranking systemto identify the key blanks that are most similar to one another. This isaccomplished by rating the keys on their similarities and storing thisinformation with the key blank information. When a key blank cannot beidentified to a complete certainty, the list of potential matches can bepresented to the user in accordance with the assigned “similar to”ranking.

The control then analyzes the key blanks that remain as possible matchesat the conclusion of the head and shoulder shape comparison (step 120).See FIG. 10 b. If the list of matches is empty, meaning that no keyblanks were identified as potential matches, then the control displays asuitable message (step 122), such as “No Matching Keys In Database” onLCD display 34. If only a single key blank was identified as a potentialmatch (step 124), this key blank is the key blank corresponding to themaster key. The control displays a message on LCD display 34 to identifythe matching key blank to the user (step 128).

If multiple keys were identified as potential matches, the control thenextracts the milling exit shape from the top lit key image of the masterkey(step 126). This is accomplished by subtracting the reference imagefrom the top lit image to produce an image of the unsupported (exposed)surface of the master key. The control analyzes the pixels of this imageof the master key to identify the milling exit shape 76. As illustratedin FIGS. 11 a-11 d, milling exit shape 76 is identified as a “shapestring” that represents the line formed on the key where the millingsexit the key blade. The control further defines the “shape string” ofmilling exit shape 76 by normalizing the image gray color on the keyblade. This is accomplished by changing the gray values that are notconsidered to be shadow to consistent fixed gray values. This processallows the control to more easily identify the milling shadows andmilling edges.

Preferably, milling exit pattern 76 is defined relative to the locationand slope of the spine (as determined above). The shape string formed onthe master key will be oriented in one of the following directions: (1)parallel to the spine, (2) perpendicular to the spine, (3) sloped awayfrom the spine, or (3) sloped to the spine. The shape string maytherefore be defined by a series of vectors, or data groups, thatindicate the length, location, and orientation of the segments that makeup the shape edge of the milling exit shape.

The control then compares the data groups defining the milling exitshape string to the stored data groups defining the milling exit shapestrings of known key blanks (step 130). The milling exit comparison isaccomplished in a manner similar to the head shape comparison process.The control compares each mill shape descriptor of the master key to themill shape descriptor of the known key blanks and scores the comparison.Score values over a specific threshold are considered to be matchedshapes. Preferably, this time-consuming comparison process is performedon only the subset of key blanks that were identified as possiblematches in the prior comparisons. It is contemplated, however, that thissearch may be performed on the entire database of known key blanks. Ineither approach, the results of the milling exit shape comparison willinclude a reduced list of key blanks that are identified as possiblematches.

If only a single key blank is identified as a match (step 132), this keyblank is the key blank that corresponds to the master key. The controlthen displays an identification of the matching key blank on LCD display34 for the user (step 128).

If, however, more that one key blank remains on the list of possiblematches, the opposite side of the master key may need to be examined(step 134). The key blanks remaining as possible matches for the masterkey are analyzed to determine if the opposite side of the key blank hasmillings that will further distinguish between the key blanks. If theremaining key blanks are not capable of being further distinguished byadditional millings on the opposite side of the key, the identificationprocess is complete and the control identifies each of the key blanksremaining as a possible match to the user via LCD display 34 (step 136).

It is contemplated that the control may determine whether there isuseful information on the opposite side of master key in a variety ofmanners. For example, an indicator may be updated when information abouta particular key blank is stored in the database. When the informationabout the key blank is loaded, a determination is made as to whether thekey blank has unique milling patterns on both sides. If so, theindicator in the database is marked accordingly. The control checks thisindicator to determine if the key should be flipped to obtain additionalinformation.

Alternatively, the control may examine the milling shape strings for theopposite side of the key blanks. This comparison will determine whetherthe opposite side of the key blanks are different from one another. Ifthere is a difference between the milling patterns on the opposite sideof the different key blanks, then additional distinctions can be madebetween the key blanks and the key should be flipped to obtain theadditional information. If there is no difference in the opposite sideof the key blanks, the step of flipping the, key for additional analysisis not necessary.

If the control determines that the key blanks may be furtherdifferentiated by millings on the opposite side of the master key, thecontrol instructs the user to flip the key over so that the oppositeside of the key is exposed to the view of receiver 28 (step 138). Afterthe user flips the master key and recloses the door of housing 22, thecontrol proceeds with either the full identification process of theopposite side of the key or some subset thereof. For example, it iscontemplated that this process may include both the steps of backlighting and top lighting. Or, alternatively, the identification processmay resume with only the top lighting step to determine the milling exitpattern on the opposite side of the key.

The present invention contemplates that the disclosed key identificationsystem may be used in conjunction with a key cutting machine. Thecontrol may perform the additional step of analyzing the edge map of thekey to determine the key cut codes for the blade of the key. The key cutcodes define the location, depth, and, angle of the cuts in the masterkey blade. The key cut codes may be stored in memory 82, displayed onLCD display 34, or sent to the key cutting machine. The key cut codesmay be transmitted to the key cutting machine via a direct connection orover a network. Alternatively, after the system of the present inventionidentifies the correct key blank, that blank can be cut to correspond tothe master key through known tracing techniques.

The present invention, therefore, provides a key identification systemthat is less complex and easier to use than conventional keyidentification systems. The system described herein uniformlyilluminates the surface of the master key, without the interference ofshadows or glares, and provides for an accurate identification of thekey. In addition, the comparison algorithms of the present inventionprovide for a quick identification of the master key. It is expectedthat the comparison process for a database of 1,000 keys may beperformed by system of the present invention in under a second. Thecompact data structures of known key blanks also allows the entiresystem to be self-contained, without the need for external data storagedevices.

It will be apparent to those skilled in the art that variousmodifications and variations can be made in the assembly of the presentinvention without departing from the scope or spirit of the invention.Other embodiments of the invention will be apparent to those skilled inthe art from consideration of the specification and practice of theinvention disclosed herein. It is intended that the specification andexamples be considered as exemplary only, with a true scope and spiritof the invention being indicated by the following claims.

1. A system for identifying a key blank from a master key, the systemcomprising: a first luminous surface configured to backlight a firstsurface of a master key; a second luminous surface configured toilluminate a second surface of a master key opposite the first surface,each of the first and second luminous surfaces disposed opposite eachother such that the master key is disposable therebetween, the first andsecond luminous surfaces disposed in a fixed position relative to theother of the first and second luminous surfaces and adapted to generatean image of the master key; a receiver operable to capture the image ofthe master key; and a control having a memory operable to storeinformation on a plurality of key blanks, the control operable toidentify the key blank corresponding to the master key based on thecaptured image.
 2. The system of claim 1, wherein the first luminoussurface supports the master key and the receiver is disposed oppositethe key from the first luminous surface, such that the first luminoussurface generates a silhouette of the master key.
 3. The system of claim2, wherein the second luminous surface includes an opening and thereceiver captures the image of the master key through the opening. 4.The system of claim 3, wherein the second luminous surface illuminatesthe unsupported surface of the master key.
 5. The system of claim 1,wherein the receiver is a digital camera.
 6. The system of claim 1,wherein the first and second luminous surfaces includeelectro-luminescent film.
 7. The system of claim 1, wherein the amountof light generated by each of the first and second luminous surfaces isindividually controllable.
 8. The system of claim 1, further comprisinga housing substantially enclosing the first and second luminous surfacesand the receiver.
 9. The system of claim 8, wherein the first and secondluminous surfaces are fixed relative to the housing.
 10. A method ofidentifying a key blank from a master key, comprising the steps of:disposing a first luminous surface configured to illuminate a firstsurface of a master key and a second luminous surface configured toilluminate a second surface of the master key opposite the first surfacein a housing, each of the first and second luminous surfaces disposed ina fixed position relative to the other of the first and second luminoussurfaces; positioning the master key between the first luminous surfaceand the second luminous surface; backlighting the first surface of themaster key with the first luminous surface; illuminating the secondsurface of the master key with the second luminous surface; capturingthe image of the master key generated by the one of the first and secondluminous surfaces; and comparing the captured image of the master keywith information from known key blanks to identify a key blankcorresponding to the master key.
 11. The method of claim 10, wherein thefirst luminous surface supports the first side of the master key. 12.The method of claim 10, wherein the first luminous surface is fixedrelative to the second luminous surface.
 13. The method of claim 10,further comprising the step of adjusting the amount of light generatedby one of the first and second luminous surfaces.
 14. The method ofclaim 10, wherein the master key includes at least one milling having anexit and the information extracted from the master key includes an imageof milling exit from one side of the master key.
 15. The method of claim14, wherein the step of comparing includes a comparison of the extractedimage of the milling exit with known images of milling exits from knownkey blanks.
 16. The method of claim 10, further comprising the step ofextracting information about the master key from the captured image. 17.The method of claim 16, further comprising the step of consolidatingsaid extracted information.